package com.xsm.view;


import com.xsm.activitygroup.R;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class LoadDialog {
	private Context context;
	public String textString;
	private Dialog LoadDialog;
public 	LoadDialog(Context c,String t){
		context=c;
		textString=t;
	}
public void showDialog(){
	View loadView=LayoutInflater.from(context).inflate(R.layout.loaddialog, null);
	TextView textView=(TextView)loadView.findViewById(R.id.LoadText);
	textView.setText(textString);
	 LoadDialog=new Dialog(context,R.style.LoadDialog);
	LoadDialog.setCanceledOnTouchOutside(false);
	LoadDialog.setContentView(loadView);
	if(!textString.equals(""))
	LoadDialog.show();	
}
public void dissmissDialog(){
	if(!textString.equals(""))
	LoadDialog.dismiss();
}
}